package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @RequestMapping("/user/sayHi")
    public String sayHi(){
        System.out.println("执行了sayHi方法");
        return "hi,spring boot aop.";
    }

    @RequestMapping("/user/login")
    public String login(){
        System.out.println("执行了login方法");
        return "do user login";
    }
}
